package benak.tomas.crimemonitor.client.activity;

import java.io.Serializable;

import android.location.Location;
import benak.tomas.crimemonitor.library.UtvarAndIntervalBasedCrimeSummary;
import benak.tomas.crimemonitor.library.UtvarKodANazev;

/**
 * A class used to store the {@link CrimeActivityBase} inner state.
 * 
 * @author Tom
 *
 */
public class CrimeActivityState<CrimeData extends UtvarAndIntervalBasedCrimeSummary & Serializable>
{
	private int							mStartYear;
	private int							mStartMonth;
	private int							mEndYear;
	private int							mEndMonth;
	
	private CrimeData					  mCrimeData;
	
	private boolean isDataLoading;
	
	public CrimeActivityState(int startYear, int startMonth,
			int endYear, int endMonth, CrimeData crimeData)
	{
		mStartYear = startYear;
		mStartMonth = startMonth;
		mEndYear = endYear;
		mEndMonth = endMonth;
		mCrimeData = crimeData;
	}

	public int getStartYear()
	{
		return this.mStartYear;
	}

	public int getStartMonth()
	{
		return this.mStartMonth;
	}

	public int getEndYear()
	{
		return this.mEndYear;
	}

	public int getEndMonth()
	{
		return this.mEndMonth;
	}

	public CrimeData getCrimeData()
	{
		return this.mCrimeData;
	}

	public boolean isDataLoading()
	{
		return isDataLoading;
	}

	public void setDataLoading(boolean isDataLoading)
	{
		this.isDataLoading = isDataLoading;
	}
}
